package 建造者模式.建造者模式实现一;

import 建造者模式.建造者模式实现一.builder.HelloBikeBuilder;
import 建造者模式.建造者模式实现一.builder.MobikeBuilder;
import 建造者模式.建造者模式实现一.director.Director;
import 建造者模式.建造者模式实现一.product.Bike;

/**
 * @author wzx
 * @date 2024/8/28 16:42
 * @description: 客户端
 */
public class Client {

    public static void main(String[] args) {
        // 创建指挥者
        Director director = new Director(new HelloBikeBuilder());
        Bike bike = director.construct();
        System.out.println(bike);

        Director director2 = new Director(new MobikeBuilder());
        Bike bike2 = director2.construct();
        System.out.println(bike2);
    }

}
